package com.jinghang.scala_base._4_Scala隐式转换

import ImplicitAspect._

object ImplicitArgs {

  def main(args: Array[String]): Unit = {
    testParam
    //testParam("xiaopang")
    testParam2
  }
  /**
    *
    * @param name 隐式参数-->默认参数
    */
  def testParam(implicit name:String): Unit = {
    println(name + "~~~~~~~~~~~~")
  }

  /**
    *
    * @param age 隐式参数-->默认参数
    */
  def testParam2(implicit age:Int): Unit = {
    println(age + "~~~~~~~~~~~~")
  }



}



